package cn.baiweigang.uu.msg;

import cn.baiweigang.uu.utils.LogUtil;
import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

@Component
public class MsgListener {

    @Async("singleTaskExecutor")
    @EventListener
    public void priceChange(PriceChangeEvent priceChangeEvent) {
        LogUtil.logDebug("收到了价格更新消息");
//        LogUtil.logInfo(priceChangeEvent);

    }

}
